We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Pdo\Oracle doesn't take 'charset' => 'uft8'

Hi!, I'm setting: $config = new \Phalcon\Config(array( 'database' => array( "dbname" => "//192.168.0.1:1521/SOMESID", "username" => "user", "password" => "pass", 'charset' => 'utf8', ) ));

new Phalcon\Db\Adapter\Pdo\Oracle($config);

but, when I make a query doesn't print the ñ,á,é,í,ó,ú

Have you copy and pasted that code? It's UTF8, not UFT8. I don't use Oracle but based on this table from the Oracle documentation, this should work:

$config = new \Phalcon\Config(array( 'database' => array( "dbname" => "//192.168.0.1:1521/SOMESID", "username" => "user", "password" => "pass", 'charset' => 'utf8', ) ));


747

Hi Sid Roberts, in my code I've: "charset" => "utf8", was my mistake writing the question.